﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using System.Web.Mvc;

namespace Xmlt.Sample
{
    public class LocalAuthorizeAttribute : AuthorizeAttribute
    {
        protected override bool AuthorizeCore(HttpContextBase httpContext) 
        { 
            return (httpContext.Request.IsLocal); 
        }
    } 
}
